home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / pxfunlink.z / pxfunlink
Text File  |  1998-10-30  |  3KB  |  72 lines

  1. PXFUNLINK(3F)                                          Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      PPXXFFUUNNLLIINNKK - Removes a directory entry
  6.  
  7. SSYYNNOOPPSSIISS
  8.      CCHHAARRAACCTTEERR*_n _p_a_t_h
  9.      IINNTTEEGGEERR _i_l_e_n,, _i_e_r_r_o_r
  10.      CCAALLLL PPXXFFUUNNLLIINNKK((_p_a_t_h,, _i_l_e_n,, _i_e_r_r_o_r))
  11.  
  12. IIMMPPLLEEMMEENNTTAATTIIOONN
  13.      UNICOS, UNICOS/mk, and IRIX systems
  14.  
  15. SSTTAANNDDAARRDDSS
  16.      IEEE standard interface for FORTRAN 77
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.      On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
  20.      default when compiling programs with the MIPSpro 7 Fortran 90 compiler
  21.      or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
  22.      7.2 F77 compiler.
  23.  
  24.      The PPXXFFUUNNLLIINNKK routine uses the uunnlliinnkk(2) system call to remove a
  25.      directory entry for the named file.
  26.  
  27.      When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
  28.      UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
  29.      kind unless documented otherwise.  On UNICOS and UNICOS/mk, default
  30.      kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
  31.      IRIX, the default kind is KKIINNDD==44.
  32.  
  33.      The following is a list of valid arguments for this routine:
  34.  
  35.      _p_a_t_h      An input character variable or array element containing the
  36.                name of a file.
  37.  
  38.      _i_l_e_n      An input integer variable containing the length of _p_a_t_h in
  39.                characters.  If _i_l_e_n is zero, all trailing blanks are
  40.                removed before calling uunnlliinnkk.
  41.  
  42.      _i_e_r_r_o_r    An output integer variable that contains a zero if the named
  43.                file was removed.
  44.  
  45.      In addition to the errors returned by the uunnlliinnkk(2) system call,
  46.      PPXXFFUUNNLLIINNKK may return the following errors:
  47.  
  48.      EEIINNVVAALL       If _i_l_e_n < 0 or _i_l_e_n > LLEENN((_p_a_t_h)).
  49.  
  50.      EENNOOMMEEMM       If PPXXFFUUNNLLIINNKK is unable to obtain memory to copy _p_a_t_h.
  51.  
  52. EEXXAAMMPPLLEESS
  53.           program test
  54.           character*(12) path
  55.           integer ilen, ierr
  56.           path = 'testfile'
  57.           ilen = 0
  58.           call pxfunlink(path,ilen,ierr)
  59.           if (ierr.ne.0) then
  60.               print *,'FAIL: error from pxfunlink = ',ierr
  61.           else
  62.               print *,'PASS: No error from pxfunlink = '
  63.           endif
  64.           end
  65.  
  66. SSEEEE AALLSSOO
  67.      uunnlliinnkk(2)
  68.  
  69.      _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
  70.      2165, for the printed version of this man page.
  71.  
  72.